<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
			// this.getUserInf() 
		},
		onShow: function() { 
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		globalData:{
			userInfo:null,
			IP:'https://api.17gz8.com',
			isLogin:false
		},
		methods:{
			getUserInf(){
				// 登录
				uni.login({
					onlyAuthorize:true,
					success: res => {
					  wx.setStorageSync('jsCode', res.code);
					  console.log(res);
					},
					fail: (res) => {
					  console.log(res);
					}
				});
			}
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "uview-ui/index.scss";
</style>
